package rok3.zesp.projekt;

import rok3.zesp.projekt.models.interfaces.Resizable;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.utils.Array;

public class Settings {
	static public final String game_name="game name";
	static public final int window_width=800;//1024;
	static public final int window_height=600;//768;
	static public final  boolean full_screen=true;
	static public final boolean useGL20=true;
	static public float scale_ratioX = 1f;
	static public float scale_ratioY = 1f;
	static public final boolean resizable=false;
	static public final String icon_path = "misc/Game3.ico";
	
	static private Array<Resizable> array = new Array<Resizable>(32);
	
	public static void configure() {
		scale_ratioX = Gdx.graphics.getWidth()/window_width;
		scale_ratioY = Gdx.graphics.getWidth()/window_width;
	}
	
	public static void resizeAll() {
		for( Resizable r : array) {
			r.resize(scale_ratioX,scale_ratioY);
		}
	}
	
	public static void register(Resizable resizableObject) {
		array.add(resizableObject);
	}
}
